<?php
class mobileapi_rpc_freight {

    /**
     * 公开构造方法
     * @params app object
     * @return null
     */
    public function __construct($app) {
        $this->app = app::get("b2c");
    }
    function getFreight() {
    	$modelFreight = app::get('b2c')->model('goods_freight');
    	$freightList = $modelFreight ->getList('freight_explain',array('freight_toggle'=>1));
    	$data = array();
    	if ($freightList) {
    		foreach ($freightList as $key => $value) {
    			$data[] = $value['freight_explain'];
    		}
    	}
    	$ret['freight'] = $data;
    	return $ret;
    }
}